<%@page import="dao.DataAccess"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>Create User</title>

<link
	href="<%=request.getContextPath()%>/CSS/ui-darkness/jquery-ui-1.9.2.custom.css"
	rel="stylesheet">
<script src="<%=request.getContextPath()%>/JS/jquery-1.8.3.js"></script>
<script src="<%=request.getContextPath()%>/JS/jquery-ui-1.9.2.custom.js"></script>

<%
	ArrayList<String> companyNameList = DataAccess.fetchCompanyName();
%>
</head>
<body>

	<!-- ui-dialog -->
	<!-- 	<div class="ui-overlay"> -->
	<!-- 		<div class="ui-widget-overlay"></div> -->
	<!-- 		<div class="ui-widget-shadow ui-corner-all" -->
	<!-- 			style="width: 302px; height: 347px; position: absolute; left: 40%; top: 30%;"></div> -->
	<!-- 	</div> -->


	<!-- 	<div -->
	<!-- 		style="position: absolute; width: 280px; height: 325px; left: 40%; top: 30%; padding: 10px;" -->
	<!-- 		class="ui-widget ui-widget-content ui-corner-all"> -->
	<!-- 		<div class="ui-dialog-content ui-widget-content" -->
	<!-- 			style="background: none; border: 0;"> -->


	<form name="createAsset"
		action="<%=request.getContextPath()%>/Controller" method="post">
		<input type="hidden" name="whereFrom" value="createUser">

		<p>User Name :</p>
		<input type="text" name="name">

		<p>Password:</p>
		<input type="text" name="password" value="Enter new Password">
		

		<p>Employer:</p>
		<select name="employer">

			<%
				if (companyNameList != null) {
					for (int i = 0; i < companyNameList.size(); i++) {
			%>
			<option><%=companyNameList.get(i)%></option>
			<%
				}
				}
			%>
		</select>

		<center>
			<input type="submit" value="Create User">
		</center>

		<p></p>


	</form>





	<!-- 	</div> -->
	<!-- 	</div> -->



</body>
</html>